function request(method, url, data ){
 return new Promise((resolve, reject) => {
  uni.request({
    url: `http://localhost:4008/user/${url}`,
    data:data,
    method: method,
    success(e){    
       resolve(e)
    },
    fail(err){
      reject(err)
    }
  })
 })
}

export default request
	
	
	
	
	
	
	
	
